<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8" import="java.util.*,java.text.SimpleDateFormat"%>
<%@include file="../common/jspcommon.jsp"%>
<%@include file="../common/jscss.jsp"%>
<%@include file="../common/selfCss.jsp"%>
<script type="text/javascript" src="/thirdparty/My97DatePicker/WdatePicker.js"></script>
<script type="text/javascript">

	function start(){
		var time = $("#time").val();
		var type = $("#type").val();
		var number = $("#number").val();
		if(time=="" || number==""){
			alert("请选择完整的条件");
			return;
		}
		$("#prompt").html("正在执行，请稍候......");
		$.post("/misc/app/updatenumber.htm",{
			time : time,
			type : type,
			number : number
		},function(data){
			if(data == "success"){
				$("#prompt").html("执行成功");
			}else{
				$("#prompt").html("系统有点抽经，请稍候重试");
			}
		});
	}

</script>

<table class="def_t">
	<tr>
		<td>时间：<input type="text" id="time" readonly="readonly" name="time" onclick="WdatePicker({el:'time',dateFmt:'yyyy-MM-dd',readOnly:true,isShowClear:false});"/></td>
		<td>
			类型：
			<select id="type">
				<option value="doing_love">收藏数</option>
				<option value="product_view">商品点击量</option>
				<option value="discuss_view">话题围观数</option>
			</select>
		</td>
		<td>随机数：<input type="text" id="number" /></td>
		<td><button onclick="start()">开始</button></td>
	</tr>
</table>
<h1 id="prompt" style="color: green;"></h1>